/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JPanelVertical.java
 *
 * Created on 13.08.2010, 16:47:46
 */

package de.jmda.mview;

import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 *
 * @author roger.jmda@gmail.com
 */
public class JPanelVertical extends javax.swing.JPanel {

    /** Creates new form JPanelVertical */
    public JPanelVertical() {
        initComponents();
        add(new JLabel("0"), 0);
    }

    public static void main(String[] args)
    {
      JPanelVertical jpv = new JPanelVertical();
      JFrame jf = new JFrame();
      jf.add(jpv);
      jf.pack();
      jf.setVisible(true);
      jpv.add(new JLabel("1"), 0);
      jpv.validate();
      jf.pack();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel1 = new javax.swing.JLabel();

    setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS));

    jLabel1.setText("jLabel1");
    add(jLabel1);
  }// </editor-fold>//GEN-END:initComponents


  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JLabel jLabel1;
  // End of variables declaration//GEN-END:variables

}
